import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {FormsModule} from '@angular/forms';
import { ListComponent } from './list/list.component';
import {MatCardModule} from '@angular/material/card';
import {MatButtonModule} from '@angular/material/button';
import { ReactiveFormsModule } from '@angular/forms';
// 模块的形式引入组件
@NgModule({
  declarations: [ListComponent],//定义list组件
  exports: [ListComponent],//导出list组件
  imports: [
    CommonModule,
    FormsModule,
    MatCardModule,
    MatButtonModule,
    ReactiveFormsModule
  ]
})
export class OrderModule {  }


/**
 * 原声写法
 * 
 *        angular.module('bootstarp目录',['ListComponent'])
            .controller('myCtrl',function($scope){
                $scope.options={
                  }
            })
    </script>
</head>
<body ng-controller="myCtrl">
    <nvd3 options='options' data='data'></nvd3> 
</body>
</html>
 * 
 * 
 */